<template>
  <el-row class="tac">
    <el-col>
      <el-menu default-active="0"  @open="handleOpen" @close="handleClose">
        <el-submenu index="0">
          <template slot="title">
            <i class="el-icon-s-tools"></i>
            <span>会议记录管理</span>
          </template>
          <el-menu-item-group>
            <el-menu-item @click="handleSelect('ScanAllMinutes')" index="1">查看所有会议记录</el-menu-item>
            <el-menu-item @click="handleSelect('AddMinutes')" index="2">上传会议记录</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-col>
  </el-row>
</template>
<script>
  // 引入公共的bug，来做为中间传达的工具
  import Bus from '@/components/Bus/bus.js'
  export default {
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      },
      handleSelect(key) {
        console.log("aside:" + key);
        Bus.$emit('select', key);

      }
    }
  }
</script>

<style scoped>

</style>
